package com.ruoyi.culture.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;

/**
 * 文化评论对象 culture_project_comment
 * 
 * @author ruoyi
 * @date 2025-04-27
 */
public class CultureProjectComment extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 文化项目 */
    @Excel(name = "文化项目")
    private Long projectId;

    /** 用户 */
    @Excel(name = "用户")
    private Long userId;

    /** 父评论 */
    @Excel(name = "父评论")
    private Long pid;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 回复对象 */
    @Excel(name = "回复对象")
    private String target;

    /** 赞 */
    @Excel(name = "赞")
    private Long likes;

    /** 踩 */
    @Excel(name = "踩")
    private Long tread;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setTarget(String target) 
    {
        this.target = target;
    }

    public String getTarget() 
    {
        return target;
    }

    public void setLikes(Long likes) 
    {
        this.likes = likes;
    }

    public Long getLikes() 
    {
        return likes;
    }

    public void setTread(Long tread) 
    {
        this.tread = tread;
    }

    public Long getTread() 
    {
        return tread;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("userId", getUserId())
            .append("pid", getPid())
            .append("content", getContent())
            .append("target", getTarget())
            .append("likes", getLikes())
            .append("tread", getTread())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
